Class org.omg.CORBA.Any
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.omg.CORBA.Any

java.lang.Object
   |
   +----org.omg.CORBA.Any

public class Any
extends Object
Class Any is a container for any data that can be described in IDL or any IDL primitive type.

For each primitive type X, the following operations exist:

void insert_X(X x);
This operations allows the insertion of a an instance x of primitive type X into the Any.
X extract_X();
This operation allows the extraction of an instance of type X from the Any. If the type of the element contained in the Any is not X, the operation throws a BAD_OPERATION exception.

Constructor Index

 o Any()

Method Index

 o create_output_stream()
returns an output stream that an Any value can be marshaled into.
 o equal(Any)
checks for equality between Anys.
 o extract_any()
 o extract_boolean()
 o extract_char()
 o extract_double()
 o extract_float()
 o extract_long()
 o extract_longlong()
 o extract_Object()
 o extract_octet()
 o extract_Principal()
 o extract_short()
 o extract_string()
 o extract_TypeCode()
 o extract_ulong()
 o extract_ulonglong()
 o extract_ushort()
 o extract_wchar()
 o extract_wstring()
 o get_input_stream()
returns an input stream that an Any value can be marshaled out of.
 o insert(Streamable)
takes a streamable and inserts it into the any
 o insert_any(Any)
 o insert_boolean(boolean)
 o insert_char(char)
 o insert_double(double)
 o insert_float(float)
 o insert_long(int)
 o insert_longlong(long)
 o insert_Object(Object)
 o insert_Object(Object, TypeCode)
 o insert_octet(byte)
 o insert_Principal(Principal)
 o insert_short(short)
 o insert_string(String)
 o insert_TypeCode(TypeCode)
 o insert_ulong(int)
 o insert_ulonglong(long)
 o insert_ushort(short)
 o insert_wchar(char)
 o insert_wstring(String)
 o read_value(InputStream, TypeCode)
reads off the value of an any using a typecode
 o type()
returns the type of the element contained in the Any.
 o type(TypeCode)
sets the type of the element to be contained in the Any.
 o write_value(OutputStream)
writes out the typecode and value of an Any

Constructors

 o Any
  public Any()

Methods

 o type
  public abstract TypeCode type()
returns the type of the element contained in the Any.
 o type
  public abstract void type(TypeCode tc)
sets the type of the element to be contained in the Any.
Parameters:
tc - the TypeCode for the element in the Any
 o equal
  public abstract boolean equal(Any a)
checks for equality between Anys.
Parameters:
otherAny - the Any to be compared with.
 o read_value
  public abstract void read_value(InputStream in,
                                  TypeCode tc) throws MARSHAL
reads off the value of an any using a typecode
Parameters:
in - the Input Stream to read value of Any from
tc - the typecode of the value to be read
 o write_value
  public abstract void write_value(OutputStream out) throws MARSHAL
writes out the typecode and value of an Any
Parameters:
out - the OutputStream to marshal value of Any into
 o create_output_stream
  public abstract OutputStream create_output_stream()
returns an output stream that an Any value can be marshaled into.
 o get_input_stream
  public abstract InputStream get_input_stream()
returns an input stream that an Any value can be marshaled out of.
 o insert
  public abstract void insert(Streamable s)
takes a streamable and inserts it into the any
Parameters:
s - the streamable to insert
 o extract_short
  public abstract short extract_short() throws BAD_OPERATION
 o insert_short
  public abstract void insert_short(short s)
 o extract_long
  public abstract int extract_long() throws BAD_OPERATION
 o insert_long
  public abstract void insert_long(int l)
 o extract_longlong
  public abstract long extract_longlong() throws BAD_OPERATION
 o insert_longlong
  public abstract void insert_longlong(long l) throws BAD_OPERATION
 o extract_ushort
  public abstract short extract_ushort() throws BAD_OPERATION
 o insert_ushort
  public abstract void insert_ushort(short s)
 o extract_ulong
  public abstract int extract_ulong() throws BAD_OPERATION
 o insert_ulong
  public abstract void insert_ulong(int l)
 o extract_ulonglong
  public abstract long extract_ulonglong() throws BAD_OPERATION
 o insert_ulonglong
  public abstract void insert_ulonglong(long l)
 o extract_float
  public abstract float extract_float() throws BAD_OPERATION
 o insert_float
  public abstract void insert_float(float f)
 o extract_double
  public abstract double extract_double() throws BAD_OPERATION
 o insert_double
  public abstract void insert_double(double d)
 o extract_boolean
  public abstract boolean extract_boolean() throws BAD_OPERATION
 o insert_boolean
  public abstract void insert_boolean(boolean b)
 o extract_char
  public abstract char extract_char() throws BAD_OPERATION
 o insert_char
  public abstract void insert_char(char c)
 o extract_octet
  public abstract byte extract_octet() throws BAD_OPERATION
 o insert_octet
  public abstract void insert_octet(byte b)
 o extract_wchar
  public abstract char extract_wchar() throws BAD_OPERATION
 o insert_wchar
  public abstract void insert_wchar(char c)
 o extract_any
  public abstract Any extract_any() throws BAD_OPERATION
 o insert_any
  public abstract void insert_any(Any a)
 o extract_string
  public abstract String extract_string() throws BAD_OPERATION
 o insert_string
  public abstract void insert_string(String s)
 o extract_wstring
  public abstract String extract_wstring() throws BAD_OPERATION
 o insert_wstring
  public abstract void insert_wstring(String s)
 o extract_Object
  public abstract Object extract_Object() throws BAD_OPERATION
 o insert_Object
  public abstract void insert_Object(Object o)
 o insert_Object
  public abstract void insert_Object(Object o,
                                     TypeCode tc)
 o extract_TypeCode
  public abstract TypeCode extract_TypeCode() throws BAD_OPERATION
 o insert_TypeCode
  public abstract void insert_TypeCode(TypeCode tc)
 o extract_Principal
  public abstract Principal extract_Principal() throws BAD_OPERATION
 o insert_Principal
  public abstract void insert_Principal(Principal tc)

All Packages  Class Hierarchy  This Package  Previous  Next  Index